<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title><?=$page_title?> Alpaca CMS </title>
  <meta name="keywords" content="<?=$meta_keywords?>"/>
  <meta name="description" content="<?=$meta_description?>"/>
  <link href="/static/alpaca.css" rel="stylesheet">
  <script charset="utf-8" src="static/js/jquery.js"></script>
  <script charset="utf-8" src="static/js/alpaca.js"></script>
</head>
<body>
  <div class="wrap">
    <ul id="nav" >
      <?php foreach($menu as $url=>$m) { ?>
      <li  class="<?php echo ($url==seg(2))?'hover':'' ?>" >
        <a class="nav-link " href="<?php echo (($url == 'logout') ? '?/':'?/admin/').$url ?>/">
          <?php echo $m ?>
        </a>
      </li>
      <?php } ?>
      <li class="<?php echo ('site'==seg(2))?'hover':'' ?>" >
        <a class="nav-link "  href="?/admin/site" >[ <?php echo $site['name'] ?> ]</a>
      </li>
    </ul>
    <div class="gray">
      <?php echo $al_content ?>
    </div>
  </div>
</body>
</html>
